package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author kabuda
 * @create 2022-08-16 13:22
 */
public interface CheckGroupDao {
    public void add(CheckGroup checkGroup);
    public void setCheckGroupAndCheckItem(Map map);

    Page<CheckGroup> findByCondition(@Param("queryString") String queryString);

    CheckGroup findById(Integer id);

    List<Integer> findCheckItemIdByCheckGroupId(Integer id);

    void editGroup(CheckGroup checkGroup);
    void deleteItem( Integer id);
    public List<CheckGroup> findAll();

}
